package vip.meeet.gc;

/**
 * vm: -verbose:gc -Xms20M -Xmx20M -Xmn10M -XX:+PrintGCDetails -XX:SurvivorRatio=8
 *
 *     -XX:+PrintGC
 *     -XX:+PrintGCDetails
 *     -XX:+PrintGCTimeStamps
 *     -Xloggc:filename
 *
 *     理解GC日志
 */
public class GCStart {

    private static final int _1MB = 1024 *1024;

    public static void main(String[] args) {
        testGc();
    }

    public static void testGc(){
        byte[] a1,a2,a3,a4;
        a1 = new byte[2 * _1MB];
        a2 = new byte[2 * _1MB];
        a3 = new byte[2 * _1MB];
        a4 = new byte[4 * _1MB];//Minor GC
    }
}
